package com.hy.convenient.api.server;

import com.hy.convenient.api.dao.CheckUpdateMapper;
import com.hy.convenient.api.pojo.QueryUpdatePojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @className GoodsDownServer
 * @Author hdy
 * @Date 2020-12-23 16:25
 * @Version 1.0
 */
@Service
public class CheckUpdateServer implements  ApiServerInterface<QueryUpdatePojo> {
    @Autowired
    public CheckUpdateMapper checkUpdateMapper;

    public List<QueryUpdatePojo> queryDownList(Map<String, Object> map){
        return checkUpdateMapper.queryDownList(map);
    }
    /**
     * 查询全部数据总条数
     * @param t
     * @return
     */
    public int queryCount(Map<String, Object> t){
        return checkUpdateMapper.queryCount(t);
    }

    @Override
    public List<QueryUpdatePojo> queryUpdateDownList(Map<String, Object> map) {
        return null;
    }
    /**
     * 用于促销活动查询 对应数据
     * @param t
     * @return
     */
    public int queryCountForPlan(Map<String, Object> t){
        return checkUpdateMapper.queryCountForPlan(t);
    }
    /**
     * 用于促销活动查询 对应数据
     * @param t
     * @return
     */
    public List<QueryUpdatePojo> queryDownListForPlan(Map<String, Object> t){
        return checkUpdateMapper.queryDownListForPlan(t);
    }

    /**
     * 查询需要更新的表
     * @param t
     * @return
     */
    public List<String> queryTableName(Map<String, Object> t){
        return checkUpdateMapper.queryTableName(t);
    }
}
